<!DOCTYPE html>
<html lang="zh_CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>叩丁狼客户管理系统</title>
<link rel="stylesheet" href="/css/core.css" type="text/css" />
<link rel="stylesheet" href="/js/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/core.css" type="text/css" />
<script src="/js/jquery/jquery-2.1.4.min.js"></script>
<script src="/js/bootstrap/js/bootstrap.min.js"></script>
<script src="/js/plugins/bootstrap/jquery.bootstrap.min.js"></script>
<script src="/js/plugins/form/jquery.form.js"></script>
<style type="text/css">
	body{
		background-color:  #FFFFFF;
	}
	.cm-container{
		margin-top: 160px;
	}
	.login {
		width: 360px;
		height: 300px;
		margin: 0px auto;
	}
</style>
<script type="text/javascript">
	$(function(){
		$("#btn_submit").click(function () {
            $("#loginForm").ajaxSubmit(function (data) {
                if (data.success) {
                    location.href = "/department/list.do";
                } else {
                    $.messager.alert("温馨提示", data.msg);
                }
            });
        });

		//按enter键点击登录按钮
		$(window).keydown(function (ev) {
            if (ev.keyCode == 13) {
                $("#btn_submit").click();
            }
        });
	});
</script>

</head>
<body >
	<div class="container cm-container">
		<h3 class="text-center">
			<label style="color: #337ab7;">叩丁狼客户管理系统(系统管理平台)</label>
		</h3>
		<hr />
		<div class="login">
			<!--
				登录页面和登录操作资源是同一个,通过提交方式来区分
			 	get方式:表示访问登录界面
			 	post方式:表示做登录认证
			 -->
			<form id="loginForm" action="/login.html" method="post">
				<div class="form-group form-group-lg">
					<div class="input-group">
						<div class="input-group-addon">账 号</div>
						<input class="form-control" name="username" >
					</div>
				</div>
				<div class="form-group form-group-lg">
					<div class="input-group">
						<div class="input-group-addon">密 码</div>
						<input class="form-control" name="password" type="password"  >
					</div>
				</div>
				<div class="form-group">
					<button type="button" class="btn btn-lg btn-primary btn-block" id="btn_submit">登录</button>
				</div>
			</form>
		</div>
	</div>
</body>
</html>